import request from '@/utils/request'
import data from "@/views/system/dict/data.vue";

export function listResultMethod(query) {
  return request({
    url: '/system/result/list',
    method: 'get',
    params:query
  })
}

export function listPublicResultMethod(query) {
  return request({
    url: '/system/result/list/public',
    method: 'get',
    params:query
  })
}
export function searchResultMethod(query) {
  return request({
    url: '/system/result/search',
    method: 'get',
    params:query
  })
}
export function getResultTrend(standardCode) {
  return request({
    url: '/system/result/trend',
    method: 'get',
    params: { standardCode }
  })
}

export function getEvaluateName(Id)
{
  return request(
    {
      url:`/system/result/${Id}`,
      method:'get'
    }
  )
}

export function updateEvaluateName(EvaluateName)
{
  return request(
    {
      url:`/system/result/name`,
      method:'put',
      data:EvaluateName
    }
  )
}

export function alterEvaluateIsPublic(publicStatus)
{
  return request(
    {
      url:`/system/result/alterpublic`,
      method:'put',
      data:publicStatus
    }
  )
}
